package com.smartmore.test;

import android.graphics.Bitmap;
import android.util.Log;



public class ImageProcLib {
	
    static {
    	try {
    		
    		System.loadLibrary("pudingsns");
    		
    	} catch (Throwable e) {
    		Log.e("lib", e.getMessage(),e);
    		e.printStackTrace();
    	}
    }
    
    public static native String makeLayoutImage(
    		int layoutWidth,
    		int layoutHeight,
    		String imagePath1,
    		String imagePath2,
    		String imagePath3,
    		String imagePath4,
    		int rotate1,
    		int rotate2,
    		int rotate3,
    		int rotate4,
    		int imagePathCount,
    		int layoutIndex,
    		String saveImageFullPath);

    public static native void makeCropImage(
            String imagePath,
            int angle,
            int resizewidth,
            int resizeheight,
            int cropwidth,
            int cropheight,
            int offsetx,
            int offsety,
            String saveImageFullPath);
    

     public static native void glSurfaceCreated(String filterImagePath);
     public static native void glSurfaceChanged(int width, int height);
     public static native void glSurfaceDestory();
     public static native void glDrawFrame();
     public static native void glClearFrame();
     public static native void glSetFilter(int FilterName);
     public static native void glSetFrame(int FrameName);
     public static native void glSetAngle(int photoAngle);
     public static native void glPushImage();
     public static native boolean glSaveImage(String saveImageFullPath, int width, int height);
 
}
